package cn.laixueit.vo;

import cn.laixueit.po.TbBook;
import cn.laixueit.po.TbBookChapter;
import com.mybatisflex.annotation.RelationOneToMany;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author duxiang
 * @date 2024/2/21 9:27
 */
@Data
@ToString(callSuper = true)
public class BookVo extends TbBook {
    private Boolean hotSort;
    private String year;
    private String month;

    @RelationOneToMany(selfField = "id", targetField = "bookId")
    private List<TbBookChapter> chapterList;
}
